// components/goods/goods.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    goods: {
      type: Object,
      value: {}
    }

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleItemClick(event) {
      const { iid } = event.currentTarget.dataset;
      wx.navigateTo({
        url: `/pages/detail/detail?iid=${iid}`,
      });
    },
  }
})
